package com.bw.trade.fegin;

import com.bw.core.vo.FindOneOrderResVo;
import com.bw.core.vo.TbOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "credit-biz-web")
public interface FeginBillClient {

    @GetMapping("/product/tbOrderFindAll")
    public TbOrderVo tbOrderFindAll(@RequestParam(value = "orderNo") String orderNo);

    /**
     * 根据订单编号查询订单对象
     * @param orderNo
     * @return
     */
    @GetMapping("/findMyOrder")
    FindOneOrderResVo findOneOrder(@RequestParam("orderNo") String orderNo);

    /**
     * 放款成功后 feign调用订单状态为待还款
     * @param orderNo
     * @return
     */
    @GetMapping("/updateStatus")
    Void updateStatus(@RequestParam("orderNo") String orderNo);

}
